package com.mew.chess.core.game.yxx.game.message;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;


/**
 * 开始押注
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class YxxPreparMessage extends ZebraBaseMessage<YxxPreparMessage> {

    private int remainTime;

    @Override
    public void write(ByteBuf b) {

        writeInt(b, this.remainTime);

    }

    @Override
    public YxxPreparMessage read(ByteBuf b) {
        this.remainTime = readInt(b);
        return this;
    }
}
